#version 300 es
precision mediump float;

uniform highp mat4 uMVP;
uniform lowp vec4 uColor;

layout (location = 0) in highp vec4 vPos;
layout (location = 1) in lowp vec4 vColor;
layout (location = 2) in vec2 vTex;

out lowp vec4 fColor;
out vec2 fTex;

void main() {
	gl_Position = vPos * uMVP;
	fColor = uColor * (vColor + 0.5);
	fTex = vTex;
}
